﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Net;
using System.Net.Sockets;
using eLibCommon;

namespace eLibServer.Core
{
  public class SenderInfo
  {
    private TcpClient _internalClient;

    public IPEndPoint Sender { get; set; }
    public List<string> ConversationHistory { get; set; }

    public SenderInfo(IPEndPoint sender)
    {
      this.Sender = sender;
    }

    public void ThreadStartProc() 
    {
      _internalClient = new TcpClient( 0);
      _internalClient.Connect(this.Sender.Address, 13001);
      TcpUtils.SendText(_internalClient, "HELLO BACK");

    }



  }
}
